package com.atguigu.petstore.sys.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.atguigu.petstore.sys.entity.SysMenu;
import com.atguigu.petstore.sys.service.SysMenuService;
import com.atguigu.petstore.sys.mapper.SysMenuMapper;
import jakarta.annotation.Resource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author lfy
* @description 针对表【sys_menu(系统-菜单)】的数据库操作Service实现
* @createDate 2023-09-21 13:53:29
*/
@Service
public class SysMenuServiceImpl extends ServiceImpl<SysMenuMapper, SysMenu>
    implements SysMenuService{


    @Resource
    SysMenuMapper sysMenuMapper;

    @Override
    public List<SysMenu> getMenuTree() {


        List<SysMenu> menus = sysMenuMapper.getMenuTree();

        return menus;
    }
}




